package com.cgtong.android.callback;

import android.content.Context;
import android.view.View;
import android.widget.Toast;
import com.kingja.loadsir.callback.Callback;
import com.cgtong.android.R;


public class TimeoutCallback extends Callback {

  @Override
  protected int onCreateView() {
    return R.layout.layout_timeout;
  }

  @Override
  protected boolean onRetry(Context context, View view) {
    Toast.makeText(context.getApplicationContext(), "Connecting to the network again!",
        Toast.LENGTH_SHORT).show();
    return false;
  }
}
